package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.Member;
import com.qf.pojo.Setmeal;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface SetmealMapper extends BaseMapper<Setmeal> {

    @Insert("insert into t_setmeal_checkgroup values (#{sid},#{checkgroupId})")
    public int insertSetmealAndCheckgroup(@Param("sid") Integer sid, @Param("checkgroupId") String checkgroupId);

    @Select("select * from t_setmeal where id=#{id}")
    Setmeal findById(Integer id);
}
